const Router = require("koa-router")  // 引入路由
const router = new Router()
const UserController = require('../controller/users')
const RoleController = require('../controller/role')

router.get('/', ctx => { ctx.body = "我最帅!" })
router.get('/user', UserController.getUser)
router.get('/user/:id', UserController.getUserDetail)

router.get('/role', RoleController.getRole)
router.post('/role', RoleController.getCurrectRole)
module.exports = router
